﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using SGRapidForm.Permission.Entity;
using SGRapidForm.Common;

namespace SGRapidForm.Permission.Service.Interface
{
    [ServiceContract(Namespace = "http://www.solutiongear.net/SGRapidForm/")]
    public interface IRolePageService
    {
        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool RolePage_Add(string roleKeyid, string pageKeyid);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool RolePage_Delete(string roleKeyid, string pageKeyid);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool RolePage_DeleteByRoleKeyid(string roleKeyid);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        List<PermissionDetails> RolePage_GetDetailsByRoleKeyidAndModuleKeyid(string roleKeyid, string filterConditions);
    }
}
